#include "BossScore.h"


BossScore::BossScore() {
}


BossScore::~BossScore() {
}




void BossScore::Initialize(sf::RenderWindow* window,EnemyManager* enyman, sf::Font* font) {
		m_renderWindow = window;
		fadeT = 255;
		fadeText = new sf::Color;
		fadeText->a = fadeT;
		fadeText->r = 255;
		fadeText->g = 255;
		fadeText->b = 255;
		bossText = new sf::Text;
		bossText->setFont(*font);
		bossText->setString("+500");
}

void BossScore::Update() {
	fadeText->a = fadeT;
	bossText->setColor(*fadeText);
	if (fadeText->a == 1) {
		bossText->move(0,-100);
	} else {
		bossText->move(0,-0.1f);
	}
	m_renderWindow->draw(*bossText);


}

void BossScore::Cleanup() {
	delete fadeText;
	delete bossText;
	
}

void BossScore::setPositionBossScore(float PosX, float PosY) {
	bossText->setPosition(PosX, PosY);
};